Range

Function

This API is used to get the parameter range of Alarm > Perimeter Intrusion Detection.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel"CH1"…"CHx",
"IP_CH1"…"IP_CHx",
"WIFI_CH1"…"WIFI_CHx"
The channels supported by the device.
string arrayonly use "CH1"。
page_type"ChannelConfig", "AlarmConfig"stringData used to distinguish between channel configuration pages and alarm configuration pages.

Sample:

POST /API/AlarmConfig/Intelligent/PID/Range HTTP/1.1
{
    "version":"1.0",
    "data":
    {
        "page_type":"AlarmConfig"
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
channel_infoJson ObjectChannel information see Table 3 for more information
page_type“ChannelConfig”,“AarmConfig”stringUsed to distinguish between channel configuration page and alarm configuration page data, only required when set
channel_maxintMaximum number of channels
support_copyboolDoes the page support copy (dedicated to NVR and DVR)
Table 3
ParameterRangeTypeDescription
CH1Json ObjectJson see Table 4 for information
...Json Object
IP_CH1Json Object
...Json Object
WIFI_CH1Json Object
...Json Object
Table 4
ParameterRangeTypeDescription
status"Offline","Online",“Nonsupport”stringChannel online status, only for digital channels.
Note: This field is not available when the channel is online
alarm_out“Local->1” ”Local->x”“IP_CH1->1” “IP_CH1->2” ”IP_CHx->1” ”IP_CHx->2”
The number of channels depends on the functionality of the device.
arrayAlarm channel
Each array bit is represented by a string representing the alarm output channel.
Camera: Local ->1: On, null: Off
latch_time"10","20","40","60"stringAlarm output time
record_enabletrue falseboolRecord channel switch
record_channel“CH1” ”CH1x”“IP_CH1” ” IP_CH1x”“WIFI_CH1”arrayAlarm output channel
Channel alarm linkage switch
post_recording"30","60","120","300"stringRecording delay time
send_emailtrue falseboolSend email switch
ftp_picture_uploadtrue falseboolChannel capture FTP upload switch
ftp_video_uploadtrue falseboolChannel video FTP upload switch
picture_to_cloudtrue falseboolImage upload switch (dedicated to NVR)
video_to_cloudtrue falseboolVideo cloud upload switch (dedicated to NVR/DVR)
full_screenboolFull screen switch (NVR specific)
buzzer"0","10","20","40","60"stringBuzzer beep time (NVR specific)
show_messageboolDisplay message switch (NVR specific)
switchtrue falseboolswitch,false: close true: open
sensitivity1-4intTest sensitivity
copy_ch"digit""analog""wifi"stringFlag supporting channel replication (dedicated to NVR and DVR)
voice_prompts_index0~4294967295intFile index (0~4294967295, where 0 is None, meaning no audio file has been selected). Each file is named "index_filename" (1ui will try), and when displayed on the page, "index_" should be hidden, such as "1ui will try" and only "i will try" should be displayed
voice_prompts_selectarrayPlayback channel, calculated by bit (bit0 is local, bit1 corresponds to front-end channel 1, and bit2 corresponds to channel 2)
voice_prompts_timearrayTime period, there cannot be time conflicts among 12 time periods
detection_type"Off" "Pedestrian" "Vehicle" "Pedestrian &Vehicle"stringDetection type, used by intelligent second-generation IPC for humanoid and vehicular shapes)
iva_lines0: No lines drawn, 1: Lines drawnboolWill there be dashes in preview and playback (used by intelligent second-generation IPC)
rule_infoJson objectsee Table 5 for more information
scene"Indoor", "Outdoor"stringScenario 0 Indoor 1 Outdoor (for Intelligent Generation IPC)
Table 5
ParameterRangeTypeDescription
rule_number1objectrule number1,see Table 6 for more information
rule_number2objectrule number2,see Table 6 for more information
rule_number3objectrule number3,see Table 6 for more information
rule_number4objectrule number4,see Table 6 for more information
Table 6
ParameterRangeTypeDescription
rule_switchboolrule switch
rule_type"A->B","B->A","A<->B"stringrule type
rule_rectobjectrule rect,see Table 7 for more information
Table 7
ParameterRangeTypeDescription
x10-704shortx1 Coordinate points
y10-576shorty1 Coordinate points
x20-704shortx2 Coordinate points
y20-576shorty2 Coordinate points
x30-704shortx3 Coordinate points
y30-576shorty3 Coordinate points
x40-704shortx4 Coordinate points
y40-576shorty4 Coordinate points

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "default_timeout": 30000,
        "channel_max": 20,
        "support_copy": true,
        "channel_info": {
            "type": "object",
            "items": {
                "IP_CH9": {
                    "type": "object",
                    "items": {
                        "status": {
                            "description": "Only offline channel has this variable.",
                            "type": "string",
                            "mode": "r",
                            "items": [
                                "Offline",
                                "Online",
                                "Nonsupport"
                            ]
                        },
                        "buzzer": {
                            "type": "string",
                            "items": [
                                "0",
                                "10",
                                "20",
                                "40",
                                "60"
                            ]
                        },
                        "alarm_out": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 25,
                            "items": {
                                "type": "string",
                                "items": [
                                    "Local->1",
                                    "IP_CH9->1"
                                ]
                            }
                        },
                        "latch_time": {
                            "type": "string",
                            "items": [
                                "10",
                                "20",
                                "40",
                                "60"
                            ]
                        },
                        "record_enable": {
                            "type": "bool"
                        },
                        "record_channel": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 20,
                            "items": {
                                "type": "string",
                                "items": [
                                    "CH1",
                                    "CH2",
                                    "CH3",
                                    "CH4",
                                    "CH5",
                                    "CH6",
                                    "CH7",
                                    "CH8",
                                    "IP_CH1",
                                    "IP_CH2",
                                    "IP_CH3",
                                    "IP_CH4",
                                    "IP_CH5",
                                    "IP_CH6",
                                    "IP_CH7",
                                    "IP_CH8",
                                    "IP_CH9",
                                    "IP_CH10",
                                    "IP_CH11",
                                    "IP_CH12"
                                ]
                            }
                        },
                        "post_recording": {
                            "type": "string",
                            "items": [
                                "30",
                                "60",
                                "120",
                                "300"
                            ]
                        },
                        "show_message": {
                            "type": "bool"
                        },
                        "send_email": {
                            "type": "bool"
                        },
                        "full_screen": {
                            "type": "bool"
                        },
                        "ftp_picture_upload": {
                            "type": "bool"
                        },
                        "ftp_video_upload": {
                            "type": "bool"
                        },
                        "picture_to_cloud": {
                            "type": "bool"
                        },
                        "video_to_cloud": {
                            "type": "bool"
                        },
                        "http_listening": {
                            "type": "bool"
                        },
                        "voice_prompts_index": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 12,
                            "items": []
                        },
                        "voice_prompts_select": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 12,
                            "items": []
                        },
                        "voice_prompts_time": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 12,
                            "items": []
                        },
                        "copy_ch": {
                            "type": "string",
                            "items": [
                                "digit",
                                "analog",
                                "wifi",
                                "local",
                                "all"
                            ]
                        }
                    }
                },
                "IP_CH12": {
                    "type": "object",
                    "items": {
                        "status": {
                            "description": "Only offline channel has this variable.",
                            "type": "string",
                            "mode": "r",
                            "items": [
                                "Offline",
                                "Online",
                                "Nonsupport"
                            ]
                        },
                        "buzzer": {
                            "type": "string",
                            "items": [
                                "0",
                                "10",
                                "20",
                                "40",
                                "60"
                            ]
                        },
                        "alarm_out": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 25,
                            "items": {
                                "type": "string",
                                "items": [
                                    "Local->1",
                                    "IP_CH9->1"
                                ]
                            }
                        },
                        "latch_time": {
                            "type": "string",
                            "items": [
                                "10",
                                "20",
                                "40",
                                "60"
                            ]
                        },
                        "record_enable": {
                            "type": "bool"
                        },
                        "record_channel": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 20,
                            "items": {
                                "type": "string",
                                "items": [
                                    "CH1",
                                    "CH2",
                                    "CH3",
                                    "CH4",
                                    "CH5",
                                    "CH6",
                                    "CH7",
                                    "CH8",
                                    "IP_CH1",
                                    "IP_CH2",
                                    "IP_CH3",
                                    "IP_CH4",
                                    "IP_CH5",
                                    "IP_CH6",
                                    "IP_CH7",
                                    "IP_CH8",
                                    "IP_CH9",
                                    "IP_CH10",
                                    "IP_CH11",
                                    "IP_CH12"
                                ]
                            }
                        },
                        "post_recording": {
                            "type": "string",
                            "items": [
                                "30",
                                "60",
                                "120",
                                "300"
                            ]
                        },
                        "show_message": {
                            "type": "bool"
                        },
                        "send_email": {
                            "type": "bool"
                        },
                        "full_screen": {
                            "type": "bool"
                        },
                        "ftp_picture_upload": {
                            "type": "bool"
                        },
                        "ftp_video_upload": {
                            "type": "bool"
                        },
                        "picture_to_cloud": {
                            "type": "bool"
                        },
                        "video_to_cloud": {
                            "type": "bool"
                        },
                        "http_listening": {
                            "type": "bool"
                        },
                        "voice_prompts_index": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 12,
                            "items": []
                        },
                        "voice_prompts_select": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 12,
                            "items": []
                        },
                        "voice_prompts_time": {
                            "type": "array",
                            "min_size": 0,
                            "max_size": 12,
                            "items": []
                        },
                        "copy_ch": {
                            "type": "string",
                            "items": [
                                "digit",
                                "analog",
                                "wifi",
                                "local",
                                "all"
                            ]
                        }
                    }
                }
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.